<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Pac-Man: Riferimenti per il file init.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pacman_header.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Pac-Man
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Funzioni</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file init.cc</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;allegro5/allegro.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_native_dialog.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_ttf.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_font.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_color.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_image.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_audio.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_acodec.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="data__struct_8h_source.html">data_struct.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="logic_8h_source.html">logic.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="io_8h_source.html">io.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:a95299d67e99eee0eefd279c7d2f09646"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a95299d67e99eee0eefd279c7d2f09646">init_audio</a> (<a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;a)</td></tr>
<tr class="memdesc:a95299d67e99eee0eefd279c7d2f09646"><td class="mdescLeft">&#160;</td><td class="mdescRight">Caricamento dei file audio.  <a href="#a95299d67e99eee0eefd279c7d2f09646">Continua...</a><br/></td></tr>
<tr class="separator:a95299d67e99eee0eefd279c7d2f09646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff3fe1979016a30ee36b803c349e62da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#aff3fe1979016a30ee36b803c349e62da">init_bitmap</a> (<a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b)</td></tr>
<tr class="memdesc:aff3fe1979016a30ee36b803c349e62da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Caricamento delle immagini.  <a href="#aff3fe1979016a30ee36b803c349e62da">Continua...</a><br/></td></tr>
<tr class="separator:aff3fe1979016a30ee36b803c349e62da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a34723cc311f540decf32490d3e6dcf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a7a34723cc311f540decf32490d3e6dcf">init_mappa</a> (<a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;m)</td></tr>
<tr class="memdesc:a7a34723cc311f540decf32490d3e6dcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione della mappa.  <a href="#a7a34723cc311f540decf32490d3e6dcf">Continua...</a><br/></td></tr>
<tr class="separator:a7a34723cc311f540decf32490d3e6dcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbe96c13789d3f6f32b5df1110e8b66b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#afbe96c13789d3f6f32b5df1110e8b66b">init_font</a> (<a class="el" href="structFONT__t.html">FONT_t</a> &amp;f)</td></tr>
<tr class="memdesc:afbe96c13789d3f6f32b5df1110e8b66b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Caricamento dei font.  <a href="#afbe96c13789d3f6f32b5df1110e8b66b">Continua...</a><br/></td></tr>
<tr class="separator:afbe96c13789d3f6f32b5df1110e8b66b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfe91385c77007d8f990e6b397878a63"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#acfe91385c77007d8f990e6b397878a63">init_pacman</a> (<a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;pacman)</td></tr>
<tr class="memdesc:acfe91385c77007d8f990e6b397878a63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione di Pacman.  <a href="#acfe91385c77007d8f990e6b397878a63">Continua...</a><br/></td></tr>
<tr class="separator:acfe91385c77007d8f990e6b397878a63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cbb3c20c6f8c57853fe8489b819f0b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a0cbb3c20c6f8c57853fe8489b819f0b0">init_blinky</a> (<a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;b, int livello)</td></tr>
<tr class="memdesc:a0cbb3c20c6f8c57853fe8489b819f0b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione di Blinky.  <a href="#a0cbb3c20c6f8c57853fe8489b819f0b0">Continua...</a><br/></td></tr>
<tr class="separator:a0cbb3c20c6f8c57853fe8489b819f0b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3cc6a733c5a5ec33060db1b8fd219e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#af3cc6a733c5a5ec33060db1b8fd219e8">init_pinky</a> (<a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;p, int livello)</td></tr>
<tr class="memdesc:af3cc6a733c5a5ec33060db1b8fd219e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione di Pinky.  <a href="#af3cc6a733c5a5ec33060db1b8fd219e8">Continua...</a><br/></td></tr>
<tr class="separator:af3cc6a733c5a5ec33060db1b8fd219e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04ae98b451db1b99599c16a041f68204"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a04ae98b451db1b99599c16a041f68204">init_inky</a> (<a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;i, int livello)</td></tr>
<tr class="memdesc:a04ae98b451db1b99599c16a041f68204"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione di Inky.  <a href="#a04ae98b451db1b99599c16a041f68204">Continua...</a><br/></td></tr>
<tr class="separator:a04ae98b451db1b99599c16a041f68204"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1594c965e73ecb7109ce93b3e7c21976"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a1594c965e73ecb7109ce93b3e7c21976">init_clyde</a> (<a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;c, int livello)</td></tr>
<tr class="memdesc:a1594c965e73ecb7109ce93b3e7c21976"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizializzazione di Clyde.  <a href="#a1594c965e73ecb7109ce93b3e7c21976">Continua...</a><br/></td></tr>
<tr class="separator:a1594c965e73ecb7109ce93b3e7c21976"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b5cc1f06aed3f0a9e400e47228c4791"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a4b5cc1f06aed3f0a9e400e47228c4791">dest_font</a> (<a class="el" href="structFONT__t.html">FONT_t</a> &amp;f)</td></tr>
<tr class="memdesc:a4b5cc1f06aed3f0a9e400e47228c4791"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funzione che dealloca i font caricati.  <a href="#a4b5cc1f06aed3f0a9e400e47228c4791">Continua...</a><br/></td></tr>
<tr class="separator:a4b5cc1f06aed3f0a9e400e47228c4791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa16ea7d536a9001ee02399117fc677c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#aa16ea7d536a9001ee02399117fc677c6">dest_bitmap</a> (<a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b)</td></tr>
<tr class="memdesc:aa16ea7d536a9001ee02399117fc677c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funzione che dealloca le immagini caricate.  <a href="#aa16ea7d536a9001ee02399117fc677c6">Continua...</a><br/></td></tr>
<tr class="separator:aa16ea7d536a9001ee02399117fc677c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ae066949127e2841ab2e0f9d76f0d9a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8cc.html#a9ae066949127e2841ab2e0f9d76f0d9a">dest_audio</a> (<a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;a)</td></tr>
<tr class="memdesc:a9ae066949127e2841ab2e0f9d76f0d9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funzione che dealloca l'audio.  <a href="#a9ae066949127e2841ab2e0f9d76f0d9a">Continua...</a><br/></td></tr>
<tr class="separator:a9ae066949127e2841ab2e0f9d76f0d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="a9ae066949127e2841ab2e0f9d76f0d9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dest_audio </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Funzione che dealloca l'audio. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> appena il giocatore chiude il gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>variabile di tipo struttura AUDIO_T contenente i suoni del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;{</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="preprocessor">    #if defined(unix) || defined(__unix__) || defined(__unix)</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="preprocessor"></span>        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">ghost_eaten</a>);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">ghosts_scared</a>);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">pacman_beginning</a>);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">pacman_extrapac</a>);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">pacman_eaten</a>);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">pacman_eatfruit</a>);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">pallet_eaten1</a>);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">pallet_eaten2</a>);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">siren</a>);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        al_destroy_sample(a.<a class="code" href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">pacman_intermission</a>);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">    #endif // defined unix</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #if defined(_WIN32)</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="preprocessor"></span>        al_free(a.<a class="code" href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">ghost_eaten</a>);</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">ghost_eaten</a>);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">ghosts_scared</a>);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">pacman_beginning</a>);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">pacman_eaten</a>);</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">pacman_extrapac</a>);</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">pacman_eatfruit</a>);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">pallet_eaten1</a>);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">pallet_eaten2</a>);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">siren</a>);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        al_free(a.<a class="code" href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">pacman_intermission</a>);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="preprocessor">    #endif // defined win32</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="preprocessor"></span>}</div>
<div class="ttc" id="structAUDIO__t_html_a2731999dfe761408a81cdd3db867b25c"><div class="ttname"><a href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">AUDIO_t::pallet_eaten2</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pallet_eaten2</div><div class="ttdoc">Quando pacman mangia i pallini. </div><div class="ttdef"><b>Definition:</b> data_struct.h:100</div></div>
<div class="ttc" id="structAUDIO__t_html_af8714a5d7bd0d1c9a337ccf013e7a4d6"><div class="ttname"><a href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">AUDIO_t::siren</a></div><div class="ttdeci">ALLEGRO_SAMPLE * siren</div><div class="ttdoc">Quando pacman deve scappare dai fantasmi. </div><div class="ttdef"><b>Definition:</b> data_struct.h:101</div></div>
<div class="ttc" id="structAUDIO__t_html_a61e8f2d255dd57fb44a642e01507f041"><div class="ttname"><a href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">AUDIO_t::pacman_intermission</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_intermission</div><div class="ttdoc">Per gli intermezzi tra un livello e l&#39;altro. </div><div class="ttdef"><b>Definition:</b> data_struct.h:102</div></div>
<div class="ttc" id="structAUDIO__t_html_a568eeb0af62ab6923f70fc5e3a4e12f5"><div class="ttname"><a href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">AUDIO_t::pacman_eatfruit</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_eatfruit</div><div class="ttdoc">Quando pacman mangia la frutta. </div><div class="ttdef"><b>Definition:</b> data_struct.h:98</div></div>
<div class="ttc" id="structAUDIO__t_html_abfea024b1c6ddcba4239c42e80525d71"><div class="ttname"><a href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">AUDIO_t::ghosts_scared</a></div><div class="ttdeci">ALLEGRO_SAMPLE * ghosts_scared</div><div class="ttdoc">Quando i fantasmi sono in in modalità spavento. </div><div class="ttdef"><b>Definition:</b> data_struct.h:94</div></div>
<div class="ttc" id="structAUDIO__t_html_a2e061bf73cdd95328f1dc0c1eea8f53b"><div class="ttname"><a href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">AUDIO_t::pallet_eaten1</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pallet_eaten1</div><div class="ttdoc">Quando pacman mangia i pallini. </div><div class="ttdef"><b>Definition:</b> data_struct.h:99</div></div>
<div class="ttc" id="structAUDIO__t_html_a2fb36eaa8b3c442453e5b267ef93d8cf"><div class="ttname"><a href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">AUDIO_t::pacman_eaten</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_eaten</div><div class="ttdoc">Quando pacman muore. </div><div class="ttdef"><b>Definition:</b> data_struct.h:97</div></div>
<div class="ttc" id="structAUDIO__t_html_a761255218806f1d7d18bffce46c4f907"><div class="ttname"><a href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">AUDIO_t::pacman_beginning</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_beginning</div><div class="ttdoc">Quando inizia il gioco. </div><div class="ttdef"><b>Definition:</b> data_struct.h:95</div></div>
<div class="ttc" id="structAUDIO__t_html_ae58c9a3c6639f34fa149c5e0b379b89a"><div class="ttname"><a href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">AUDIO_t::pacman_extrapac</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_extrapac</div><div class="ttdoc">Quando pacman mangia i pallini speciali. </div><div class="ttdef"><b>Definition:</b> data_struct.h:96</div></div>
<div class="ttc" id="structAUDIO__t_html_a713408ca391db15134f5ed97c9485795"><div class="ttname"><a href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">AUDIO_t::ghost_eaten</a></div><div class="ttdeci">ALLEGRO_SAMPLE * ghost_eaten</div><div class="ttdoc">Quando i fantasmi muoiono. </div><div class="ttdef"><b>Definition:</b> data_struct.h:93</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aa16ea7d536a9001ee02399117fc677c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dest_bitmap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Funzione che dealloca le immagini caricate. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> appena il giocatore chiude il gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>variabile di tipo struttura <a class="el" href="structBITMAP__t.html" title="Struttura contenente le bitmap utilizzate. ">BITMAP_t</a> contenente le immagini del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;{</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">header_image</a>);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#a7558ca0a3112b67660c40928da042988">puntino</a>);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#aad5404ad9ca7ee73c0e7a71e898695cf">f_pericolo</a>);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    al_destroy_bitmap(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;}</div>
<div class="ttc" id="structBITMAP__t_html_a88336e9319de6756949da237686a567b"><div class="ttname"><a href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">BITMAP_t::autotile</a></div><div class="ttdeci">ALLEGRO_BITMAP * autotile</div><div class="ttdoc">Immagine per la comparsa del puntino nel menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:111</div></div>
<div class="ttc" id="structBITMAP__t_html_a749c635ea419d3d69b519023febe08f1"><div class="ttname"><a href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">BITMAP_t::fant_fuga</a></div><div class="ttdeci">ALLEGRO_BITMAP * fant_fuga</div><div class="ttdoc">Immagine Principale del menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:108</div></div>
<div class="ttc" id="structBITMAP__t_html_a7558ca0a3112b67660c40928da042988"><div class="ttname"><a href="structBITMAP__t.html#a7558ca0a3112b67660c40928da042988">BITMAP_t::puntino</a></div><div class="ttdeci">ALLEGRO_BITMAP * puntino</div><div class="ttdoc">Sheet del fantasma mangiato. </div><div class="ttdef"><b>Definition:</b> data_struct.h:110</div></div>
<div class="ttc" id="structBITMAP__t_html_aad5404ad9ca7ee73c0e7a71e898695cf"><div class="ttname"><a href="structBITMAP__t.html#aad5404ad9ca7ee73c0e7a71e898695cf">BITMAP_t::f_pericolo</a></div><div class="ttdeci">ALLEGRO_BITMAP * f_pericolo</div><div class="ttdoc">Immagine per la composizione della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:112</div></div>
<div class="ttc" id="structBITMAP__t_html_a16f81d2b0d3a14509b6907cc383f6e54"><div class="ttname"><a href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">BITMAP_t::frutta</a></div><div class="ttdeci">ALLEGRO_BITMAP * frutta</div><div class="ttdoc">Fantasmi spaventati e morti. </div><div class="ttdef"><b>Definition:</b> data_struct.h:113</div></div>
<div class="ttc" id="structBITMAP__t_html_a066ddc3995050f478afa61d28db86209"><div class="ttname"><a href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">BITMAP_t::header_image</a></div><div class="ttdeci">ALLEGRO_BITMAP * header_image</div><div class="ttdef"><b>Definition:</b> data_struct.h:107</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a4b5cc1f06aed3f0a9e400e47228c4791"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dest_font </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Funzione che dealloca i font caricati. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> appena il giocatore chiude il gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile di tipo struttura <a class="el" href="structFONT__t.html" title="Struttura contenente i font del gioco. ">FONT_t</a> contenente i font del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;{</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    al_destroy_font(f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a>);</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    al_destroy_font(f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a>);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    al_destroy_font(f.<a class="code" href="structFONT__t.html#a28052080877dbbb0bc24bcd7aa822bd2">h3</a>);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    al_destroy_font(f.<a class="code" href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">h4</a>);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    al_destroy_font(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;}</div>
<div class="ttc" id="structFONT__t_html_a76faf4506d1f76b84db356b58d565f72"><div class="ttname"><a href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">FONT_t::h2</a></div><div class="ttdeci">ALLEGRO_FONT * h2</div><div class="ttdoc">Font H1. </div><div class="ttdef"><b>Definition:</b> data_struct.h:121</div></div>
<div class="ttc" id="structFONT__t_html_a28052080877dbbb0bc24bcd7aa822bd2"><div class="ttname"><a href="structFONT__t.html#a28052080877dbbb0bc24bcd7aa822bd2">FONT_t::h3</a></div><div class="ttdeci">ALLEGRO_FONT * h3</div><div class="ttdoc">Font H2. </div><div class="ttdef"><b>Definition:</b> data_struct.h:122</div></div>
<div class="ttc" id="structFONT__t_html_ab8b7bfc03f3e59ae5cc656798d685f95"><div class="ttname"><a href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">FONT_t::h1</a></div><div class="ttdeci">ALLEGRO_FONT * h1</div><div class="ttdef"><b>Definition:</b> data_struct.h:120</div></div>
<div class="ttc" id="structFONT__t_html_a4aef7cb48348ee0d28ef61adbeae86d4"><div class="ttname"><a href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">FONT_t::h4</a></div><div class="ttdeci">ALLEGRO_FONT * h4</div><div class="ttdoc">Font H3. </div><div class="ttdef"><b>Definition:</b> data_struct.h:123</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a95299d67e99eee0eefd279c7d2f09646"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_audio </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Caricamento dei file audio. </p>
<p>Eseguita nel <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> nella fase di inizializzazione delle componenti del gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>variabile di tipo struttura AUDIO_T contenente i suoni del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;     a.<a class="code" href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">ghost_eaten</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/ghost_eaten.wav&quot;</span>);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">ghost_eaten</a> == NULL)</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, ghost_eaten.wav error!&quot;</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;         a.<a class="code" href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">ghosts_scared</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/ghosts_scared.wav&quot;</span>);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">ghosts_scared</a> == NULL)</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, ghosts_scared.wav error!&quot;</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">pacman_beginning</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pacman_beginning.wav&quot;</span>);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">pacman_beginning</a> == NULL)</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pacman_beginning.wav error!&quot;</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">pacman_eaten</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pacman_eaten.wav&quot;</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">pacman_eaten</a> == NULL)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pacman_eaten.wav error!&quot;</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">pacman_eatfruit</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pacman_eatfruit.wav&quot;</span>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">pacman_eatfruit</a> == NULL)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pacman_eatfruit.wav error!&quot;</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">pallet_eaten1</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pallet_eaten1.wav&quot;</span>);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">pallet_eaten1</a> == NULL)</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pallet_eaten1.wav error!&quot;</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">pallet_eaten2</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pallet_eaten2.wav&quot;</span>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">pallet_eaten2</a> == NULL)</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pallet_eaten2.wav error!&quot;</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;         a.<a class="code" href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">siren</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/siren.wav&quot;</span>);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">siren</a> == NULL)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, siren.wav error!&quot;</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;         a.<a class="code" href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">pacman_intermission</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pacman_intermission.wav&quot;</span>);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">pacman_intermission</a> == NULL)</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pacman_intermission.wav error!&quot;</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;     a.<a class="code" href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">pacman_extrapac</a> = al_load_sample(<span class="stringliteral">&quot;data/sound/pacman_extrapac.wav&quot;</span>);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;         <span class="keywordflow">if</span> (a.<a class="code" href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">pacman_extrapac</a> == NULL)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                cout&lt;&lt;<span class="stringliteral">&quot;\n Audio Error, pacman_extrapac.wav error!&quot;</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;}</div>
<div class="ttc" id="structAUDIO__t_html_a2731999dfe761408a81cdd3db867b25c"><div class="ttname"><a href="structAUDIO__t.html#a2731999dfe761408a81cdd3db867b25c">AUDIO_t::pallet_eaten2</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pallet_eaten2</div><div class="ttdoc">Quando pacman mangia i pallini. </div><div class="ttdef"><b>Definition:</b> data_struct.h:100</div></div>
<div class="ttc" id="structAUDIO__t_html_af8714a5d7bd0d1c9a337ccf013e7a4d6"><div class="ttname"><a href="structAUDIO__t.html#af8714a5d7bd0d1c9a337ccf013e7a4d6">AUDIO_t::siren</a></div><div class="ttdeci">ALLEGRO_SAMPLE * siren</div><div class="ttdoc">Quando pacman deve scappare dai fantasmi. </div><div class="ttdef"><b>Definition:</b> data_struct.h:101</div></div>
<div class="ttc" id="structAUDIO__t_html_a61e8f2d255dd57fb44a642e01507f041"><div class="ttname"><a href="structAUDIO__t.html#a61e8f2d255dd57fb44a642e01507f041">AUDIO_t::pacman_intermission</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_intermission</div><div class="ttdoc">Per gli intermezzi tra un livello e l&#39;altro. </div><div class="ttdef"><b>Definition:</b> data_struct.h:102</div></div>
<div class="ttc" id="structAUDIO__t_html_a568eeb0af62ab6923f70fc5e3a4e12f5"><div class="ttname"><a href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">AUDIO_t::pacman_eatfruit</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_eatfruit</div><div class="ttdoc">Quando pacman mangia la frutta. </div><div class="ttdef"><b>Definition:</b> data_struct.h:98</div></div>
<div class="ttc" id="structAUDIO__t_html_abfea024b1c6ddcba4239c42e80525d71"><div class="ttname"><a href="structAUDIO__t.html#abfea024b1c6ddcba4239c42e80525d71">AUDIO_t::ghosts_scared</a></div><div class="ttdeci">ALLEGRO_SAMPLE * ghosts_scared</div><div class="ttdoc">Quando i fantasmi sono in in modalità spavento. </div><div class="ttdef"><b>Definition:</b> data_struct.h:94</div></div>
<div class="ttc" id="structAUDIO__t_html_a2e061bf73cdd95328f1dc0c1eea8f53b"><div class="ttname"><a href="structAUDIO__t.html#a2e061bf73cdd95328f1dc0c1eea8f53b">AUDIO_t::pallet_eaten1</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pallet_eaten1</div><div class="ttdoc">Quando pacman mangia i pallini. </div><div class="ttdef"><b>Definition:</b> data_struct.h:99</div></div>
<div class="ttc" id="structAUDIO__t_html_a2fb36eaa8b3c442453e5b267ef93d8cf"><div class="ttname"><a href="structAUDIO__t.html#a2fb36eaa8b3c442453e5b267ef93d8cf">AUDIO_t::pacman_eaten</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_eaten</div><div class="ttdoc">Quando pacman muore. </div><div class="ttdef"><b>Definition:</b> data_struct.h:97</div></div>
<div class="ttc" id="structAUDIO__t_html_a761255218806f1d7d18bffce46c4f907"><div class="ttname"><a href="structAUDIO__t.html#a761255218806f1d7d18bffce46c4f907">AUDIO_t::pacman_beginning</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_beginning</div><div class="ttdoc">Quando inizia il gioco. </div><div class="ttdef"><b>Definition:</b> data_struct.h:95</div></div>
<div class="ttc" id="structAUDIO__t_html_ae58c9a3c6639f34fa149c5e0b379b89a"><div class="ttname"><a href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">AUDIO_t::pacman_extrapac</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_extrapac</div><div class="ttdoc">Quando pacman mangia i pallini speciali. </div><div class="ttdef"><b>Definition:</b> data_struct.h:96</div></div>
<div class="ttc" id="structAUDIO__t_html_a713408ca391db15134f5ed97c9485795"><div class="ttname"><a href="structAUDIO__t.html#a713408ca391db15134f5ed97c9485795">AUDIO_t::ghost_eaten</a></div><div class="ttdeci">ALLEGRO_SAMPLE * ghost_eaten</div><div class="ttdoc">Quando i fantasmi muoiono. </div><div class="ttdef"><b>Definition:</b> data_struct.h:93</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aff3fe1979016a30ee36b803c349e62da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_bitmap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Caricamento delle immagini. </p>
<p>Eseguita nel <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> nella fase di inizializzazione delle componenti del gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>variabile di tipo struttura <a class="el" href="structBITMAP__t.html" title="Struttura contenente le bitmap utilizzate. ">BITMAP_t</a> contenente le immagini del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    b.<a class="code" href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">header_image</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/pacman_header.jpg&quot;</span>);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">header_image</a> == NULL)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, pacman_header error!&quot;</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma_pericolo.png&quot;</span>);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a> == NULL)</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, fantasma_pericolo error!&quot;</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma_mangiato.png&quot;</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a> == NULL)</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, fantasma_mangiato error!&quot;</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    b.<a class="code" href="structBITMAP__t.html#a7558ca0a3112b67660c40928da042988">puntino</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/puntino_bianco.png&quot;</span>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a7558ca0a3112b67660c40928da042988">puntino</a> == NULL)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, puntino_bianco error!&quot;</span>;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/autotile.jpg&quot;</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a> == NULL)</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, autotile error!&quot;</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    b.<a class="code" href="structBITMAP__t.html#aad5404ad9ca7ee73c0e7a71e898695cf">f_pericolo</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma_pericolo.png&quot;</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#aad5404ad9ca7ee73c0e7a71e898695cf">f_pericolo</a> == NULL)</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, clyde - fantasma4 error!&quot;</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>= al_load_bitmap(<span class="stringliteral">&quot;data/img/frutta.png&quot;</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a> == NULL)</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, frutta.png error!&quot;</span>;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    b.<a class="code" href="structBITMAP__t.html#aa2d6b783ebf23294af6c77b5c5b5f6ab">morte</a>= al_load_bitmap(<span class="stringliteral">&quot;data/img/morte.png&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a> == NULL)</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, morte.png error!&quot;</span>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a>= al_load_bitmap(<span class="stringliteral">&quot;data/img/controls.png&quot;</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;         <span class="keywordflow">if</span> (b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a> == NULL)</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, controls.png error!&quot;</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;}</div>
<div class="ttc" id="structBITMAP__t_html_a88336e9319de6756949da237686a567b"><div class="ttname"><a href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">BITMAP_t::autotile</a></div><div class="ttdeci">ALLEGRO_BITMAP * autotile</div><div class="ttdoc">Immagine per la comparsa del puntino nel menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:111</div></div>
<div class="ttc" id="structBITMAP__t_html_a749c635ea419d3d69b519023febe08f1"><div class="ttname"><a href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">BITMAP_t::fant_fuga</a></div><div class="ttdeci">ALLEGRO_BITMAP * fant_fuga</div><div class="ttdoc">Immagine Principale del menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:108</div></div>
<div class="ttc" id="structBITMAP__t_html_aa2d6b783ebf23294af6c77b5c5b5f6ab"><div class="ttname"><a href="structBITMAP__t.html#aa2d6b783ebf23294af6c77b5c5b5f6ab">BITMAP_t::morte</a></div><div class="ttdeci">ALLEGRO_BITMAP * morte</div><div class="ttdoc">Immagine della frutta. </div><div class="ttdef"><b>Definition:</b> data_struct.h:114</div></div>
<div class="ttc" id="structBITMAP__t_html_a7558ca0a3112b67660c40928da042988"><div class="ttname"><a href="structBITMAP__t.html#a7558ca0a3112b67660c40928da042988">BITMAP_t::puntino</a></div><div class="ttdeci">ALLEGRO_BITMAP * puntino</div><div class="ttdoc">Sheet del fantasma mangiato. </div><div class="ttdef"><b>Definition:</b> data_struct.h:110</div></div>
<div class="ttc" id="structBITMAP__t_html_aad5404ad9ca7ee73c0e7a71e898695cf"><div class="ttname"><a href="structBITMAP__t.html#aad5404ad9ca7ee73c0e7a71e898695cf">BITMAP_t::f_pericolo</a></div><div class="ttdeci">ALLEGRO_BITMAP * f_pericolo</div><div class="ttdoc">Immagine per la composizione della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:112</div></div>
<div class="ttc" id="structBITMAP__t_html_a16f81d2b0d3a14509b6907cc383f6e54"><div class="ttname"><a href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">BITMAP_t::frutta</a></div><div class="ttdeci">ALLEGRO_BITMAP * frutta</div><div class="ttdoc">Fantasmi spaventati e morti. </div><div class="ttdef"><b>Definition:</b> data_struct.h:113</div></div>
<div class="ttc" id="structBITMAP__t_html_aedfc2577861ecb4dceed56adb7de0f76"><div class="ttname"><a href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">BITMAP_t::fant_mangiato</a></div><div class="ttdeci">ALLEGRO_BITMAP * fant_mangiato</div><div class="ttdoc">Sheet della fuga dei fantasmi. </div><div class="ttdef"><b>Definition:</b> data_struct.h:109</div></div>
<div class="ttc" id="structBITMAP__t_html_a066ddc3995050f478afa61d28db86209"><div class="ttname"><a href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">BITMAP_t::header_image</a></div><div class="ttdeci">ALLEGRO_BITMAP * header_image</div><div class="ttdef"><b>Definition:</b> data_struct.h:107</div></div>
<div class="ttc" id="structBITMAP__t_html_ab9148dd7e4b693f9c1c2d9e2e2e6468e"><div class="ttname"><a href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">BITMAP_t::controls</a></div><div class="ttdeci">ALLEGRO_BITMAP * controls</div><div class="ttdoc">Immagine della morte di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:115</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0cbb3c20c6f8c57853fe8489b819f0b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_blinky </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>livello</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione di Blinky. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>, durante lo stato del gioco <a class="el" href="data__struct_8h.html#a2b4fca65b06655936250de8523872c89a348ee0b12aa2add36de34a33d06c2a52">CARICA</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>variabile di tipo FANTASMA_T contenente le informazioni di blinky. </td></tr>
    <tr><td class="paramname">livello</td><td>livello corrente in gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;{</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = 0;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">stato</a> = <a class="code" href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a0e1c10b4d505df64d77b3696f1061dd7">SPARPAGLIAMENTO</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span>(livello &gt;= 1 &amp;&amp; livello &lt;= 5)</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        b.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 4;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello &gt; 5 &amp;&amp; livello &lt;= 9)</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        b.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 5;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello == 10)</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        b.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 6;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a> = 13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a> = 13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    b.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma1.png&quot;</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">if</span>(b.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> == NULL)</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, blinky - fantasma1 error!&quot;</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structFANTASMA__t_html_a63a2d9c251c49e8b2f4717f71dfff397"><div class="ttname"><a href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">FANTASMA_t::stato</a></div><div class="ttdeci">STATO_FANT stato</div><div class="ttdoc">Stato del fantasma, indica cosa deve fare. </div><div class="ttdef"><b>Definition:</b> data_struct.h:80</div></div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structFANTASMA__t_html_a24d4818b10c3a68aee3befe7136f8899"><div class="ttname"><a href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">FANTASMA_t::movespeed</a></div><div class="ttdeci">float movespeed</div><div class="ttdoc">Velocità del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:81</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
<div class="ttc" id="data__struct_8h_html_aa00140705985f9874a4cf8b4404e9537a0e1c10b4d505df64d77b3696f1061dd7"><div class="ttname"><a href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a0e1c10b4d505df64d77b3696f1061dd7">SPARPAGLIAMENTO</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:40</div></div>
<div class="ttc" id="structFANTASMA__t_html_a1049d6a35db7532b5bd521436f702722"><div class="ttname"><a href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">FANTASMA_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">Immagine relativa al fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:86</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1594c965e73ecb7109ce93b3e7c21976"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_clyde </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>livello</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione di Clyde. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>, durante lo stato del gioco <a class="el" href="data__struct_8h.html#a2b4fca65b06655936250de8523872c89a348ee0b12aa2add36de34a33d06c2a52">CARICA</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>variabile di tipo FANTASMA_T contenente le informazioni di clyde. </td></tr>
    <tr><td class="paramname">livello</td><td>livello corrente in gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;{</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a>;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = 0;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">stato</a> = <a class="code" href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a>;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keywordflow">if</span>(livello &gt;= 1 &amp;&amp; livello &lt;= 5)</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        c.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 4;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello &gt; 5 &amp;&amp; livello &lt;= 9)</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        c.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 5;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello == 10)</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        c.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 6;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a> = 13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a> = 15 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    c.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma4.png&quot;</span>);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordflow">if</span>(c.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> == NULL)</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, clyde - fantasma4 error!&quot;</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structFANTASMA__t_html_a63a2d9c251c49e8b2f4717f71dfff397"><div class="ttname"><a href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">FANTASMA_t::stato</a></div><div class="ttdeci">STATO_FANT stato</div><div class="ttdoc">Stato del fantasma, indica cosa deve fare. </div><div class="ttdef"><b>Definition:</b> data_struct.h:80</div></div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structFANTASMA__t_html_a24d4818b10c3a68aee3befe7136f8899"><div class="ttname"><a href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">FANTASMA_t::movespeed</a></div><div class="ttdeci">float movespeed</div><div class="ttdoc">Velocità del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:81</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
<div class="ttc" id="data__struct_8h_html_aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d"><div class="ttname"><a href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:40</div></div>
<div class="ttc" id="structFANTASMA__t_html_a1049d6a35db7532b5bd521436f702722"><div class="ttname"><a href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">FANTASMA_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">Immagine relativa al fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:86</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="afbe96c13789d3f6f32b5df1110e8b66b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_font </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Caricamento dei font. </p>
<p>Eseguita nel <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> nella fase di inizializzazione delle componenti del gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile di tipo struttura <a class="el" href="structFONT__t.html" title="Struttura contenente i font del gioco. ">FONT_t</a> contenente i font del gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;{</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a> = al_load_font(<span class="stringliteral">&quot;data/font/pac-font.ttf&quot;</span>, 32, 0);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">if</span> (f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a> == NULL)</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Font Error, pac-font.ttf error!&quot;</span>;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a> = al_load_font(<span class="stringliteral">&quot;data/font/pac-font.ttf&quot;</span>, 18, 0);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    f.<a class="code" href="structFONT__t.html#a28052080877dbbb0bc24bcd7aa822bd2">h3</a> = al_load_font(<span class="stringliteral">&quot;data/font/pac-font.ttf&quot;</span>, 20, 0);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    f.<a class="code" href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">h4</a> = al_load_font(<span class="stringliteral">&quot;data/font/orbitron-black.ttf&quot;</span>, 10, 0);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">if</span> (f.<a class="code" href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">h4</a> == NULL)</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Font Error, orbitron-black.ttf error!&quot;</span>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a> = al_load_font(<span class="stringliteral">&quot;data/font/orbitron-black.ttf&quot;</span>, 20, 0);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div>
<div class="ttc" id="structFONT__t_html_a76faf4506d1f76b84db356b58d565f72"><div class="ttname"><a href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">FONT_t::h2</a></div><div class="ttdeci">ALLEGRO_FONT * h2</div><div class="ttdoc">Font H1. </div><div class="ttdef"><b>Definition:</b> data_struct.h:121</div></div>
<div class="ttc" id="structFONT__t_html_a28052080877dbbb0bc24bcd7aa822bd2"><div class="ttname"><a href="structFONT__t.html#a28052080877dbbb0bc24bcd7aa822bd2">FONT_t::h3</a></div><div class="ttdeci">ALLEGRO_FONT * h3</div><div class="ttdoc">Font H2. </div><div class="ttdef"><b>Definition:</b> data_struct.h:122</div></div>
<div class="ttc" id="structFONT__t_html_ab8b7bfc03f3e59ae5cc656798d685f95"><div class="ttname"><a href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">FONT_t::h1</a></div><div class="ttdeci">ALLEGRO_FONT * h1</div><div class="ttdef"><b>Definition:</b> data_struct.h:120</div></div>
<div class="ttc" id="structFONT__t_html_a4aef7cb48348ee0d28ef61adbeae86d4"><div class="ttname"><a href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">FONT_t::h4</a></div><div class="ttdeci">ALLEGRO_FONT * h4</div><div class="ttdoc">Font H3. </div><div class="ttdef"><b>Definition:</b> data_struct.h:123</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a04ae98b451db1b99599c16a041f68204"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_inky </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>livello</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione di Inky. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>, durante lo stato del gioco <a class="el" href="data__struct_8h.html#a2b4fca65b06655936250de8523872c89a348ee0b12aa2add36de34a33d06c2a52">CARICA</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>variabile di tipo FANTASMA_T contenente le informazioni di inky. </td></tr>
    <tr><td class="paramname">livello</td><td>livello corrente in gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;{</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a>;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = 0;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">stato</a> = <a class="code" href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a>;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">if</span>(livello &gt;= 1 &amp;&amp; livello &lt;= 5)</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        i.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 4;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello &gt; 5 &amp;&amp; livello &lt;= 9)</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        i.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 5;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello == 10)</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        i.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 6;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a> = 15 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a> = 15 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    i.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma3.png&quot;</span>);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keywordflow">if</span>(i.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> == NULL)</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, inky - fantasma3 error!&quot;</span>;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structFANTASMA__t_html_a63a2d9c251c49e8b2f4717f71dfff397"><div class="ttname"><a href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">FANTASMA_t::stato</a></div><div class="ttdeci">STATO_FANT stato</div><div class="ttdoc">Stato del fantasma, indica cosa deve fare. </div><div class="ttdef"><b>Definition:</b> data_struct.h:80</div></div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structFANTASMA__t_html_a24d4818b10c3a68aee3befe7136f8899"><div class="ttname"><a href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">FANTASMA_t::movespeed</a></div><div class="ttdeci">float movespeed</div><div class="ttdoc">Velocità del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:81</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
<div class="ttc" id="data__struct_8h_html_aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d"><div class="ttname"><a href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:40</div></div>
<div class="ttc" id="structFANTASMA__t_html_a1049d6a35db7532b5bd521436f702722"><div class="ttname"><a href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">FANTASMA_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">Immagine relativa al fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:86</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a7a34723cc311f540decf32490d3e6dcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_mappa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione della mappa. </p>
<p>Eseguita nel <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> nella fase di inizializzazione delle componenti del gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>variabile contenente le informazioni riguardanti la mappa di gioco di tipo MAPPA_T. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    m.<a class="code" href="structMAPPA__t.html#a2644bce73327c50b0538aac5a9039c54">c</a> = 0;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    m.<a class="code" href="structMAPPA__t.html#a66ed78e0a589ef13ecb5e82ec4097934">r</a> = 0;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    m.<a class="code" href="structMAPPA__t.html#ab2e9ea9798d2de75538abca11cb7372d">mappa</a> = NULL;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div>
<div class="ttc" id="structMAPPA__t_html_ab2e9ea9798d2de75538abca11cb7372d"><div class="ttname"><a href="structMAPPA__t.html#ab2e9ea9798d2de75538abca11cb7372d">MAPPA_t::mappa</a></div><div class="ttdeci">char ** mappa</div><div class="ttdoc">Matrice che definisce la mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:46</div></div>
<div class="ttc" id="structMAPPA__t_html_a2644bce73327c50b0538aac5a9039c54"><div class="ttname"><a href="structMAPPA__t.html#a2644bce73327c50b0538aac5a9039c54">MAPPA_t::c</a></div><div class="ttdeci">int c</div><div class="ttdoc">Numero di Righe. </div><div class="ttdef"><b>Definition:</b> data_struct.h:45</div></div>
<div class="ttc" id="structMAPPA__t_html_a66ed78e0a589ef13ecb5e82ec4097934"><div class="ttname"><a href="structMAPPA__t.html#a66ed78e0a589ef13ecb5e82ec4097934">MAPPA_t::r</a></div><div class="ttdeci">int r</div><div class="ttdoc">Numero di Colonne. </div><div class="ttdef"><b>Definition:</b> data_struct.h:44</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="acfe91385c77007d8f990e6b397878a63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_pacman </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;&#160;</td>
          <td class="paramname"><em>pacman</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione di Pacman. </p>
<p>Eseguita nella funzione <a class="el" href="logic_8h.html#a5536dfecfcb0c57f471b5995bb9ee690" title="La funzione gestisce l&#39;animazione del menu in base al tasto premuto. ">anima_menu</a>, durante lo stato del gioco <a class="el" href="data__struct_8h.html#a2b4fca65b06655936250de8523872c89a4c40e60bc71a32b924ce1f08d57f9721">MENU</a>, quando il giocatore preme il tasto <a class="el" href="data__struct_8h.html#a9c87ca40e543ebbb6e33116215d4959ca951ab68bb8f7daafb78951107080904e">ENTER</a> per far partire la partita. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">pacman</td><td>varibaile contenente i dati di pac-man di tipo PLAYER_T. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;{</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#afb6bd811c5d4e65c62cb6435b7df42e8">dir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30">FERMO</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#ab008f2009f1a813ef0d34f05e336b92a">precdir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a898fd7abd6aae10a03fc8f61543e1ab6">SX</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#ac0d443b516a2d514a2680f5682e2aa59">succdir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30">FERMO</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#a8be89f53b4e130501b728955315bcc2b">movespeed</a> = 4;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a> = 0;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">sourcey</a> = 0;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">x</a> = 13*<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>+<a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">y</a> = 23*<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>+<a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> = 0;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#a1fd6b8273c0204380ae76c40c2b1f922">mangiato</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        pacman.<a class="code" href="structPLAYER__t.html#a15e538b419151663a5a74f229c6f73b1">vita</a> = 2;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    pacman.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/pacman2.png&quot;</span>);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;         <span class="keywordflow">if</span> (pacman.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a> == NULL)</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, pacman2 error!&quot;</span>;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;}</div>
<div class="ttc" id="structPLAYER__t_html_aade4415d08e695ee02427da46073bb2b"><div class="ttname"><a href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">PLAYER_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:64</div></div>
<div class="ttc" id="structPLAYER__t_html_a15e538b419151663a5a74f229c6f73b1"><div class="ttname"><a href="structPLAYER__t.html#a15e538b419151663a5a74f229c6f73b1">PLAYER_t::vita</a></div><div class="ttdeci">int vita</div><div class="ttdoc">Vite di pacman che possono essere minimo 0 massimo 3. </div><div class="ttdef"><b>Definition:</b> data_struct.h:68</div></div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structPLAYER__t_html_a4b8fca3349d778b421c46b5b98b165fe"><div class="ttname"><a href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">PLAYER_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:65</div></div>
<div class="ttc" id="structPLAYER__t_html_aa6bfc54bd6064533300002983d91b824"><div class="ttname"><a href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">PLAYER_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:66</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structPLAYER__t_html_ac0d443b516a2d514a2680f5682e2aa59"><div class="ttname"><a href="structPLAYER__t.html#ac0d443b516a2d514a2680f5682e2aa59">PLAYER_t::succdir</a></div><div class="ttdeci">DIREZ succdir</div><div class="ttdoc">Stato della sucessiva direzione di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:62</div></div>
<div class="ttc" id="structPLAYER__t_html_a1fd6b8273c0204380ae76c40c2b1f922"><div class="ttname"><a href="structPLAYER__t.html#a1fd6b8273c0204380ae76c40c2b1f922">PLAYER_t::mangiato</a></div><div class="ttdeci">bool mangiato</div><div class="ttdoc">se vera pacman è mangiato dai fantasmi </div><div class="ttdef"><b>Definition:</b> data_struct.h:70</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structPLAYER__t_html_aa19de2169570b92a594342181ef3f679"><div class="ttname"><a href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">PLAYER_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">L&#39;immagine associata a Pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:71</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30">FERMO</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structPLAYER__t_html_a8be89f53b4e130501b728955315bcc2b"><div class="ttname"><a href="structPLAYER__t.html#a8be89f53b4e130501b728955315bcc2b">PLAYER_t::movespeed</a></div><div class="ttdeci">float movespeed</div><div class="ttdoc">Velocità del pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:63</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a898fd7abd6aae10a03fc8f61543e1ab6"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a898fd7abd6aae10a03fc8f61543e1ab6">SX</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structPLAYER__t_html_a7e67b1e986244dc4437d6e3729669f49"><div class="ttname"><a href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">PLAYER_t::punteggio</a></div><div class="ttdeci">int punteggio</div><div class="ttdoc">punteggio attuale </div><div class="ttdef"><b>Definition:</b> data_struct.h:69</div></div>
<div class="ttc" id="structPLAYER__t_html_afb6bd811c5d4e65c62cb6435b7df42e8"><div class="ttname"><a href="structPLAYER__t.html#afb6bd811c5d4e65c62cb6435b7df42e8">PLAYER_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:60</div></div>
<div class="ttc" id="structPLAYER__t_html_ab008f2009f1a813ef0d34f05e336b92a"><div class="ttname"><a href="structPLAYER__t.html#ab008f2009f1a813ef0d34f05e336b92a">PLAYER_t::precdir</a></div><div class="ttdeci">DIREZ precdir</div><div class="ttdoc">Stato della precedente direzione di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:61</div></div>
<div class="ttc" id="structPLAYER__t_html_ab81f7ae3799b19f183ae25e433f6637e"><div class="ttname"><a href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">PLAYER_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:67</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af3cc6a733c5a5ec33060db1b8fd219e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void init_pinky </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>livello</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inizializzazione di Pinky. </p>
<p>Eseguita nella funzione <a class="el" href="game_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>, durante lo stato del gioco <a class="el" href="data__struct_8h.html#a2b4fca65b06655936250de8523872c89a348ee0b12aa2add36de34a33d06c2a52">CARICA</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>variabile di tipo FANTASMA_T contenente le informazioni di pinky. </td></tr>
    <tr><td class="paramname">livello</td><td>livello corrente in gioco. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void. </dd></dl>
<div class="fragment"><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;{</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a> = <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a>;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = 0;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">stato</a> = <a class="code" href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">if</span>(livello &gt;= 1 &amp;&amp; livello &lt;= 5)</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        p.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 4;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello &gt; 5 &amp;&amp; livello &lt;= 9)</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        p.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 5;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(livello == 10)</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        p.<a class="code" href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">movespeed</a> = 6;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a> = 11 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a> = 15 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    p.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> = al_load_bitmap(<span class="stringliteral">&quot;data/img/fantasma2.png&quot;</span>);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordflow">if</span>(p.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a> == NULL)</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        cout&lt;&lt;<span class="stringliteral">&quot;\n Bitmap Error, pinky - fantasma2 error!&quot;</span>;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structFANTASMA__t_html_a63a2d9c251c49e8b2f4717f71dfff397"><div class="ttname"><a href="structFANTASMA__t.html#a63a2d9c251c49e8b2f4717f71dfff397">FANTASMA_t::stato</a></div><div class="ttdeci">STATO_FANT stato</div><div class="ttdoc">Stato del fantasma, indica cosa deve fare. </div><div class="ttdef"><b>Definition:</b> data_struct.h:80</div></div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a7911229e7fd613f96aeaf9413c8251bc">SU</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structFANTASMA__t_html_a24d4818b10c3a68aee3befe7136f8899"><div class="ttname"><a href="structFANTASMA__t.html#a24d4818b10c3a68aee3befe7136f8899">FANTASMA_t::movespeed</a></div><div class="ttdeci">float movespeed</div><div class="ttdoc">Velocità del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:81</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
<div class="ttc" id="data__struct_8h_html_aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d"><div class="ttname"><a href="data__struct_8h.html#aa00140705985f9874a4cf8b4404e9537a819197a69edc465d7895c0589abf037d">ONDULA</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:40</div></div>
<div class="ttc" id="structFANTASMA__t_html_a1049d6a35db7532b5bd521436f702722"><div class="ttname"><a href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">FANTASMA_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">Immagine relativa al fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:86</div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 14 Ott 2014 18:28:45 per Pac-Man da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
